package EPIRPConstDefs;
/**
 * Generated from IDL enum "ChangeMode".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class ChangeMode
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _REGISTER = 0;
	public static final ChangeMode REGISTER = new ChangeMode(_REGISTER);
	public static final int _DEREGISTER = 1;
	public static final ChangeMode DEREGISTER = new ChangeMode(_DEREGISTER);
	public static final int _MODIFY = 2;
	public static final ChangeMode MODIFY = new ChangeMode(_MODIFY);
	public int value()
	{
		return value;
	}
	public static ChangeMode from_int(int value)
	{
		switch (value) {
			case _REGISTER: return REGISTER;
			case _DEREGISTER: return DEREGISTER;
			case _MODIFY: return MODIFY;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _REGISTER: return "REGISTER";
			case _DEREGISTER: return "DEREGISTER";
			case _MODIFY: return "MODIFY";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected ChangeMode(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
